testsuite: Add a testcase for repeat nodes that don't repeat
authorTimm Bäder <mail@baedert.org>
Tue, 19 Nov 2019 09:45:35 +0000 (10:45 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 19 Nov 2019 09:45:35 +0000 (10:45 +0100)
testsuite/gsk/compare/repeat-no-repeat.node [new file with mode: 0644]
testsuite/gsk/compare/repeat-no-repeat.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/repeat-no-repeat.node b/testsuite/gsk/compare/repeat-no-repeat.node
new file mode 100644 (file)
index 0000000..1598e11
--- /dev/null
@@ -0,0 +1,14 @@
+repeat {
+  child: container {
+    color {
+      color: red;
+      bounds: 0 0 50 50;
+    }
+    color {
+      color: blue;
+      bounds: 50 0 50 50;
+    }
+  }
+
+  bounds: 50 0 50 50;
+}
diff --git a/testsuite/gsk/compare/repeat-no-repeat.png b/testsuite/gsk/compare/repeat-no-repeat.png
new file mode 100644 (file)
index 0000000..97102a0
Binary files /dev/null and b/testsuite/gsk/compare/repeat-no-repeat.png differ
index e367cd7ef67959cb43201be863bbe2b56f271c72..cf54b8961c2c23fba79e7ebe7c8f9ac2473f534d 100644 (file)
@@ -59,6 +59,7 @@ compare_render_tests = [
   'opacity-overlapping-children',
   'repeat',
   'repeat-texture',
+  'repeat-no-repeat',
 ]
 
 # these are too sensitive to differences in the renderers